<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/mypetstore.css" type="text/css" media="screen"/>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
</head>
<body>

<header th:fragment="header">

    <div id="Header">
        <div id="Logo">
            <div id="LogoContent">
                <a href="main"><img src="../images/logo-topbar.gif"/></a>
            </div>
        </div>
        <div id="Menu">
            <div id="MenuContent">
                <a href="/cart"> <img align="middle" name="img_cart" src="../images/cart.gif"/></a>
                <img align="middle" src="../images/separator.gif"/>

                <a href="/account/signOn" th:if="${session.loginAccount==null}">Sign In</a>
                <img align="middle" src="../images/separator.gif" th:if="${session.loginAccount==null}"/>

                <a href="/account/signOut" th:if="${session.loginAccount!=null}">Sign Out</a>
                <img align="middle" src="../images/separator.gif" th:if="${session.loginAccount!=null}"/>
                <a href="/account/editeAccount" th:if="${session.loginAccount!=null}">My Account</a>
                <img align="middle" src="../images/separator.gif" th:if="${session.loginAccount!=null}"/>
                <a href="/help">?</a>
            </div>
        </div>

        <div id="Search">
            <div id="SearchContent">
                <form action="" method="post">
                    <input type="text" name=name="keyword" size="14" class="input-search" id="keyword"
                           autocomplete="false"/>
                    <input type="submit" value="Search" class="button-search"/>
                </form>
                <div id="selectedId">
                    <ul id="drop"></ul>
                </div>
            </div>
        </div>

        <div id="QuickLinks">
            <br/> <br/> <br/> <br/><br/>
            <a href="category?categoryId=FISH"><img src="../images/sm_fish.gif"/></a>&nbsp&nbsp&nbsp&nbsp
            <img src="../images/separator.gif"/>&nbsp&nbsp&nbsp&nbsp
            <a href="category?categoryId=DOGS"> <img src="../images/sm_dogs.gif"/></a>&nbsp&nbsp&nbsp&nbsp
            <img src="../images/separator.gif"/>&nbsp&nbsp&nbsp&nbsp
            <a href="category?categoryId=REPTILES"> <img src="../images/sm_reptiles.gif"/></a>&nbsp&nbsp&nbsp&nbsp
            <img src="../images/separator.gif"/>&nbsp&nbsp&nbsp&nbsp
            <a href="category?categoryId=CATS"> <img src="../images/sm_cats.gif"/></a>&nbsp&nbsp&nbsp&nbsp
            <img src="../images/separator.gif"/>&nbsp&nbsp&nbsp&nbsp
            <a href="category?categoryId=BIRDS"> <img src="../images/sm_birds.gif"/></a>&nbsp&nbsp&nbsp
            <img src="../images/separator.gif"/><br/>
        </div>
    </div>

</header>
